package main

import (
	"fmt"
)

func main(){

	var city[]string=make([]string,5,10)
	city[0]="be"
	city[3]="test"

	var address[]string=[]string{"china","japanese","korean"}
	a:=address[:] //全部数据
	a1:=address[0:]//全部

	fmt.Println("a=",a)
	fmt.Println("a1=",a1)

	s:=[...]int{1,2,3}
	for i,v:=range city{
		fmt.Printf("i=%v,v=%v\n",i,v)
	}

	for i,v:=range address{
		fmt.Printf("i=%v,v=%v\n",i,v)
	}
	for i,v:=range s{
		fmt.Printf("i=%v,v=%v\n",i,v)
	}
}